#include "list.h" 
#include <iostream> 

using std::cout;
using std::endl;

void test()
{
    List<int> list;
    list.push_back(1);
    list.push_back(2);
    list.push_front(0);

    cout << list.front() << endl;
    cout << list.back() << endl;
}

void test2()
{
    List<int> list;
    list.push_back(1);
    list.push_back(2);
    list.push_front(0);
    
    List<int>::Iter iter = list.begin();
    cout << *iter << endl;
    cout << *(iter++) << endl;
    cout << *(iter++) << endl;
    cout << *(iter++) << endl;

    cout << "---------------" << endl;

    for(auto it: list){
        cout << it << endl;
    }

    cout << "---------------" << endl;
    for(List<int>::Iter i = list.begin(); i != list.end(); i++){
        cout << *i << endl;
    }

}

int main(int args, char *argv[])
{
    // test();
    test2();
    return 0;
}